<?php
function __autoload($class){
    if(file_exists("./lib/".$class.".php")){
        require_once "./lib/".$class.".php";
    }else if(file_exists("./application/model/".$class.".php")){
        require_once "./application/model/".$class.".php";
    }
}